cmake_minimum_required(VERSION 3.15)

project(RemoteServer)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED true)
set(CMAKE_CXX_FLAGS "-g -Wall -Xlinker -export-dynamic")

find_package(fmt REQUIRED)
find_package(msgpack-cxx REQUIRED)
find_package(sdbus-c++ REQUIRED)

include_directories(AFTER 
  include
)

link_libraries(
  fmt 
  pthread
  rt
  SDBusCpp::sdbus-c++
)

add_executable(RemoteServer 
  src/NetworkForwardInterface.cpp
  src/NetworkServer.cpp
  run/main.cpp
)

add_executable(RemoteServer_test
  src/NetworkServer.cpp
  test/NetworkServer_test.cpp
)
